﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Region, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Region, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "Function"))

	_DB:AddCodeHelp("GetRight", [=[Returns the distance from the left edge of the screen to the right edge of the region]=], [=[GetRight()]=])
	_DB:AddCodeHelp("SetHeight", [=[Sets the region's height]=], [=[SetHeight(height)]=])
	_DB:AddCodeHelp("GetBottom", [=[Returns the distance from the bottom of the screen to the bottom of the region]=], [=[GetBottom()]=])
	_DB:AddCodeHelp("CreateAnimationGroup", [=[Creates a new AnimationGroup as a child of the region]=], [=[CreateAnimationGroup(["name" [, "inheritsFrom"]])]=])
	_DB:AddCodeHelp("StopAnimating", [=[Stops any active animations involving the region or its children]=], [=[StopAnimating()]=])
	_DB:AddCodeHelp("IsDragging", [=[Returns whether the region is currently being dragged]=], [=[IsDragging()]=])
	_DB:AddCodeHelp("GetWidth", [=[Returns the width of the region]=], [=[GetWidth()]=])
	_DB:AddCodeHelp("Hide", [=[Hides the region]=], [=[Hide()]=])
	_DB:AddCodeHelp("ClearAllPoints", [=[Removes all anchor points from the region]=], [=[ClearAllPoints()]=])
	_DB:AddCodeHelp("IsVisible", [=[Returns whether the region is visible]=], [=[IsVisible()]=])
	_DB:AddCodeHelp("GetRect", [=[Returns the position and dimensions of the region]=], [=[GetRect()]=])
	_DB:AddCodeHelp("SetPoint", [=[Sets an anchor point for the region]=], [=[SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]])]=])
	_DB:AddCodeHelp("Dispose", [=[]=], [=[]=])
	_DB:AddCodeHelp("GetNumPoints", [=[Returns the number of anchor points defined for the region]=], [=[GetNumPoints()]=])
	_DB:AddCodeHelp("IsShown", [=[Returns whether the region is shown]=], [=[IsShown()]=])
	_DB:AddCodeHelp("GetTop", [=[Returns the distance from the bottom of the screen to the top of the region]=], [=[GetTop()]=])
	_DB:AddCodeHelp("Show", [=[Shows the region]=], [=[Show()]=])
	_DB:AddCodeHelp("GetHeight", [=[Returns the height of the region]=], [=[GetHeight()]=])
	_DB:AddCodeHelp("GetPoint", [=[Returns information about one of the region's anchor points]=], [=[GetPoint(index)]=])
	_DB:AddCodeHelp("SetAllPoints", [=[Sets all anchor points of the region to match those of another region]=], [=[SetAllPoints(["name"])]=])
	_DB:AddCodeHelp("IsProtected", [=[Returns whether the region is protected]=], [=[IsProtected()]=])
	_DB:AddCodeHelp("SetWidth", [=[Sets the region's width]=], [=[SetWidth(width)]=])
	_DB:AddCodeHelp("GetCenter", [=[Returns the screen coordinates of the region's center]=], [=[GetCenter()]=])
	_DB:AddCodeHelp("GetLeft", [=[Returns the distance from the left edge of the screen to the left edge of the region]=], [=[GetLeft()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.Region, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.UIObject, "Property"))

	_DB:AddCodeHelp("Alpha", [[Set or get the frame's transparency value(0-1)]], IGAS:GetPropertyType("Alpha"))
	_DB:AddCodeHelp("Height", [[the height of the region]], IGAS:GetPropertyType("number"))
	_DB:AddCodeHelp("Visible", [[the visible of the region]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("Width", [[the width of the region]], IGAS:GetPropertyType("number"))
end
